#!/bin/bash
model=none
datasets=none
val_datasets=none
test_datasets=none
gpus=0


get_opts()
{
    echo "======================================"
    while [ -n "$1" ]
    do
        case "$1" in
            --model)
                echo ">> model : $2"
                model=$2
                shift
                ;;
            --datasets)
                echo ">> datasets : $2"
                datasets=$2
                shift
                ;;
            --val-datasets)
                echo ">> val datasets : $2"
                val_datasets=$2
                shift
                ;;
            --test-datasets)
                echo ">> test datasets : $2"
                test_datasets=$2
                shift
                ;;
            --gpus)
                echo ">> gpus : $2"
                gpus=$2
                shift
                ;;
            --)
                break
                shift
                ;;
            *)
                echo "== unknown option : $1"
                ;;
        esac
        shift
    done
    echo "======================================"
}

get_opts $*

python evaluate_net.py --model $model --datasets $datasets --val-datasets $val_datasets --test-datasets $test_datasets \
&& python analysis_net.py --model $model --datasets $datasets --val-datasets $val_datasets --test-datasets $test_datasets


